package cn.xy.ymcc.constants;


import java.awt.*;

/**
 * 全局异常枚举类
 */
public enum GlobalError {
    ERROR_EXCEPTION("5000","出错了");
    /**
     * 错误码
     */
    private String code;
    /**
     * 错误描述
     *
     */
    private String message;

    GlobalError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode(){
        return code;
    }
    public String getMessage(){
        return message;
    }
}
